#include "seg.h"

uchar Seg_Dula[11]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00};
uchar Seg_Wela[6]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf};

void Seg_Display(uchar wela,uchar dula,uchar point){
	P0=0x00;
	P2_6=1;
	P2_6=0;
	
	P0=Seg_Wela[wela];
	P2_7=1;
	P2_7=0;
	
	if(point==1)
		P0=Seg_Dula[dula]|0x80;
	else
		P0=Seg_Dula[dula];
	P2_6=1;
	P2_6=0;
	
}